/* 
 * File:   Controller.h
 * Author: chb
 *
 * Created on 4. September 2009, 21:00
 */

#ifndef _CONTROLLER_H
#define	_CONTROLLER_H

#include <SDL/SDL.h>
#include "Hero.h"
//class Hero;

class Controller {
public:
	static Controller* instance();
	void mainLoop();
        void keyDownEvent(SDL_Event&);
        void setHero(Hero*);
	virtual ~Controller();
private:
	Controller();
	static Controller* _instance;
	bool _running;
        Hero* _hero;
};


#endif	/* _CONTROLLER_H */

